package Text;

public class Demo6 {
    public static void main(String[] args) {
        double paper = 0.01;//定义纸张厚度
        int count = 0;//定义计数器
        while (true) {
            paper = paper * 2;//对折
            count++;
            if (paper >= 8848) {//满足条件跳出循环
                break;
            }
        }
        System.out.println("需要折叠" + count + "次" +
                "可以折成珠穆朗玛峰的高度");
    }
}
